home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1461 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000070| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 57 |c.Subjec|t: Re: W|
|00000080| 68 61 74 20 74 68 65 20 | 68 65 6c 6c 20 69 73 20 |hat the |hell is |
|00000090| 54 48 49 53 3f 21 0a 44 | 61 74 65 3a 20 53 75 6e |THIS?!.D|ate: Sun|
|000000a0| 2c 20 31 34 20 4a 61 6e | 20 31 39 39 36 20 30 31 |, 14 Jan| 1996 01|
|000000b0| 3a 30 33 3a 34 35 20 2d | 30 36 30 30 0a 4f 72 67 |:03:45 -|0600.Org|
|000000c0| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 55 6e 69 76 65 |anizatio|n: Unive|
|000000d0| 72 73 69 74 79 20 6f 66 | 20 49 6f 77 61 2c 20 49 |rsity of| Iowa, I|
|000000e0| 6f 77 61 20 43 69 74 79 | 2c 20 49 41 2c 20 55 53 |owa City|, IA, US|
|000000f0| 41 0a 44 69 73 74 72 69 | 62 75 74 69 6f 6e 3a 20 |A.Distri|bution: |
|00000100| 77 6f 72 6c 64 0a 4d 65 | 73 73 61 67 65 2d 49 44 |world.Me|ssage-ID|
|00000110| 3a 20 3c 50 69 6e 65 2e | 41 33 32 2e 33 2e 39 31 |: <Pine.|A32.3.91|
|00000120| 2e 39 36 30 31 31 34 30 | 30 35 36 35 38 2e 32 35 |.9601140|05658.25|
|00000130| 34 38 33 49 2d 31 30 30 | 30 30 30 40 72 65 64 2e |483I-100|000@red.|
|00000140| 77 65 65 67 2e 75 69 6f | 77 61 2e 65 64 75 3e 0a |weeg.uio|wa.edu>.|
|00000150| 52 65 66 65 72 65 6e 63 | 65 73 3a 20 3c 34 64 36 |Referenc|es: <4d6|
|00000160| 72 67 68 24 72 66 75 40 | 61 62 65 6c 2e 63 63 2e |rgh$rfu@|abel.cc.|
|00000170| 73 75 6e 79 73 62 2e 65 | 64 75 3e 0a 4e 4e 54 50 |sunysb.e|du>.NNTP|
|00000180| 2d 50 6f 73 74 69 6e 67 | 2d 48 6f 73 74 3a 20 72 |-Posting|-Host: r|
|00000190| 65 64 2e 77 65 65 67 2e | 75 69 6f 77 61 2e 65 64 |ed.weeg.|uiowa.ed|
|000001a0| 75 0a 4d 69 6d 65 2d 56 | 65 72 73 69 6f 6e 3a 20 |u.Mime-V|ersion: |
|000001b0| 31 2e 30 0a 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |1.0.Cont|ent-Type|
|000001c0| 3a 20 54 45 58 54 2f 50 | 4c 41 49 4e 3b 20 63 68 |: TEXT/P|LAIN; ch|
|000001d0| 61 72 73 65 74 3d 55 53 | 2d 41 53 43 49 49 0a 58 |arset=US|-ASCII.X|
|000001e0| 2d 53 65 6e 64 65 72 3a | 20 72 6f 62 69 6e 73 6f |-Sender:| robinso|
|000001f0| 6e 40 72 65 64 2e 77 65 | 65 67 2e 75 69 6f 77 61 |n@red.we|eg.uiowa|
|00000200| 2e 65 64 75 0a 49 6e 2d | 52 65 70 6c 79 2d 54 6f |.edu.In-|Reply-To|
|00000210| 3a 20 3c 34 64 36 72 67 | 68 24 72 66 75 40 61 62 |: <4d6rg|h$rfu@ab|
|00000220| 65 6c 2e 63 63 2e 73 75 | 6e 79 73 62 2e 65 64 75 |el.cc.su|nysb.edu|
|00000230| 3e 20 0a 0a 4f 6e 20 31 | 32 20 4a 61 6e 20 31 39 |> ..On 1|2 Jan 19|
|00000240| 39 36 2c 20 42 6f 6d 6d | 61 73 61 6d 75 64 72 61 |96, Bomm|asamudra|
|00000250| 6d 20 4d 61 64 68 75 73 | 75 64 61 6e 20 77 72 6f |m Madhus|udan wro|
|00000260| 74 65 3a 0a 0a 3e 20 68 | 69 20 67 75 79 73 3b 0a |te:..> h|i guys;.|
|00000270| 3e 20 0a 3e 20 49 27 6d | 20 67 6f 69 6e 67 20 6e |> .> I'm| going n|
|00000280| 75 74 73 20 74 72 79 69 | 6e 67 20 74 6f 20 66 69 |uts tryi|ng to fi|
|00000290| 67 75 72 65 20 74 68 69 | 73 20 6f 75 74 3b 0a 3e |gure thi|s out;.>|
|000002a0| 20 0a 3e 20 43 61 6e 20 | 73 6f 6d 65 6f 6e 65 20 | .> Can |someone |
|000002b0| 65 78 70 6c 61 69 6e 20 | 77 68 61 74 0a 3e 20 0a |explain |what.> .|
|000002c0| 3e 20 20 20 69 6e 74 20 | 28 2a 70 29 5b 33 5d 20 |> int |(*p)[3] |
|000002d0| 20 69 73 3f 3f 3f 3f 3f | 0a 3e 20 0a 3e 20 20 20 | is?????|.> .> |
|000002e0| 49 73 20 74 68 69 73 20 | 61 6e 20 61 72 72 61 79 |Is this |an array|
|000002f0| 20 6f 66 20 70 6f 69 6e | 74 65 72 73 20 74 6f 20 | of poin|ters to |
|00000300| 69 6e 74 65 67 65 72 73 | 20 0a 0a 20 20 4e 6f 2c |integers| .. No,|
|00000310| 20 74 68 61 74 20 77 6f | 75 6c 64 20 62 65 0a 0a | that wo|uld be..|
|00000320| 20 20 69 6e 74 20 2a 70 | 5b 33 5d 3b 20 0a 0a 20 | int *p|[3]; .. |
|00000330| 20 73 69 6e 63 65 20 5b | 5d 20 62 69 6e 64 73 20 | since [|] binds |
|00000340| 6d 6f 72 65 20 74 69 67 | 68 74 6c 79 20 74 68 61 |more tig|htly tha|
|00000350| 6e 20 2a 2e 0a 0a 3e 20 | 20 20 4f 52 0a 3e 20 20 |n *...> | OR.> |
|00000360| 20 61 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 61 6e | a point|er to an|
|00000370| 20 61 72 72 61 79 20 6f | 66 20 69 6e 74 65 67 65 | array o|f intege|
|00000380| 72 73 3f 3f 0a 0a 20 20 | 59 65 70 2e 20 20 4d 6f |rs??.. |Yep. Mo|
|00000390| 72 65 20 70 72 65 63 69 | 73 65 6c 79 20 69 74 27 |re preci|sely it'|
|000003a0| 73 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 61 |s a poin|ter to a|
|000003b0| 6e 20 61 72 72 61 79 20 | 6f 66 20 74 68 72 65 65 |n array |of three|
|000003c0| 20 69 6e 74 73 2e 0a 0a | 3e 20 49 20 63 61 6e 20 | ints...|> I can |
|000003d0| 73 61 79 20 74 68 69 6e | 67 73 20 6c 69 6b 65 3a |say thin|gs like:|
|000003e0| 0a 3e 20 0a 3e 20 28 2a | 70 29 5b 30 5d 20 3d 20 |.> .> (*|p)[0] = |
|000003f0| 33 3b 20 66 6f 72 20 65 | 2e 67 2c 20 62 75 74 20 |3; for e|.g, but |
|00000400| 77 68 65 6e 20 49 20 70 | 72 69 6e 74 20 74 68 65 |when I p|rint the|
|00000410| 20 76 61 6c 75 65 20 75 | 73 69 6e 67 3a 0a 0a 20 | value u|sing:.. |
|00000420| 20 49 66 20 79 6f 75 20 | 68 61 76 65 6e 27 74 20 | If you |haven't |
|00000430| 6d 61 6c 6c 6f 63 28 29 | 27 64 20 6d 65 6d 6f 72 |malloc()|'d memor|
|00000440| 79 20 66 6f 72 20 74 68 | 65 20 70 6f 69 6e 74 65 |y for th|e pointe|
|00000450| 72 20 74 68 61 6e 20 74 | 68 69 73 20 73 74 61 74 |r than t|his stat|
|00000460| 65 6d 65 6e 74 20 0a 69 | 73 20 77 72 69 74 69 6e |ement .i|s writin|
|00000470| 67 20 74 6f 20 61 6e 20 | 75 6e 6b 6e 6f 77 6e 20 |g to an |unknown |
|00000480| 28 61 6e 64 2f 6f 72 20 | 69 6c 6c 65 67 61 6c 29 |(and/or |illegal)|
|00000490| 20 6c 6f 63 61 74 69 6f | 6e 20 69 6e 20 6d 65 6d | locatio|n in mem|
|000004a0| 6f 72 79 2e 0a 0a 3e 20 | 20 70 72 69 6e 74 66 28 |ory...> | printf(|
|000004b0| 22 25 64 22 2c 28 2a 70 | 29 5b 30 5d 29 20 49 20 |"%d",(*p|)[0]) I |
|000004c0| 67 65 74 20 61 20 63 6f | 72 65 20 64 75 6d 70 21 |get a co|re dump!|
|000004d0| 0a 0a 20 20 4d 6f 73 74 | 20 6c 69 6b 65 6c 79 20 |.. Most| likely |
|000004e0| 62 65 63 61 75 73 65 20 | 79 6f 75 20 64 69 64 6e |because |you didn|
|000004f0| 27 74 20 6d 61 6c 6c 6f | 63 28 29 20 73 70 61 63 |'t mallo|c() spac|
|00000500| 65 20 66 6f 72 20 74 68 | 65 20 70 6f 69 6e 74 65 |e for th|e pointe|
|00000510| 72 20 74 6f 20 70 6f 69 | 6e 74 20 0a 74 6f 2c 20 |r to poi|nt .to, |
|00000520| 73 6f 20 79 6f 75 27 72 | 65 20 64 65 72 65 66 65 |so you'r|e derefe|
|00000530| 72 65 6e 63 69 6e 67 20 | 61 20 6e 75 6c 6c 20 70 |rencing |a null p|
|00000540| 6f 69 6e 74 65 72 20 6f | 72 20 74 72 79 69 6e 67 |ointer o|r trying|
|00000550| 20 74 6f 20 61 63 63 65 | 73 73 20 74 68 65 20 66 | to acce|ss the f|
|00000560| 69 72 73 74 20 0a 65 6c | 65 6d 65 6e 74 20 6f 66 |irst .el|ement of|
|00000570| 20 61 20 6e 6f 6e 65 78 | 69 73 74 65 6e 74 20 61 | a nonex|istent a|
|00000580| 72 72 61 79 2e 20 20 4b | 61 2d 62 6f 6f 6d 2e 0a |rray. K|a-boom..|
|00000590| 0a 2f 2a 2a 4a 61 6d 65 | 73 20 52 6f 62 69 6e 73 |./**Jame|s Robins|
|000005a0| 6f 6e 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |on******|********|
|000005b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 20 20 20 20 20 20 20 |********|* |
|000005c0| 20 20 20 20 20 0a 20 20 | 22 49 66 20 61 20 66 61 | . |"If a fa|
|000005d0| 74 61 6c 20 65 72 72 6f | 72 20 6f 63 63 75 72 73 |tal erro|r occurs|
|000005e0| 2c 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 73 68 |, the pr|ogram sh|
|000005f0| 6f 75 6c 64 20 6e 6f 74 | 20 62 65 20 61 6c 6c 6f |ould not| be allo|
|00000600| 77 65 64 20 74 6f 20 63 | 6f 6e 74 69 6e 75 65 2e |wed to c|ontinue.|
|00000610| 22 0a 20 2d 2d 20 4f 72 | 61 63 6c 65 20 50 72 6f |". -- Or|acle Pro|
|00000620| 2a 43 20 55 73 65 72 27 | 73 20 47 75 69 64 65 20 |*C User'|s Guide |
|00000630| 20 20 20 20 20 20 20 20 | 2a 2a 2a 2a 2a 2a 2a 2a | |********|
|00000640| 2a 2a 2a 2a 2a 6a 61 6d | 65 73 2d 72 6f 62 69 6e |*****jam|es-robin|
|00000650| 73 6f 6e 40 75 69 6f 77 | 61 2e 65 64 75 2a 2a 2f |son@uiow|a.edu**/|
|00000660| 0a 0a | |.. | |
+--------+-------------------------+-------------------------+--------+--------+